package com.xmy.api.feign;

import com.xmy.entity.Result;
import com.xmy.pojo.ShopCoupon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.websocket.server.PathParam;

/**
 * 优惠券接口
 */
@Component
@FeignClient("dubbo-coupon-provider")
public interface ICouponFeginService {
    @GetMapping("/coupon/{id}")
    ShopCoupon findOne(@PathParam("id")Long couponId);

    @GetMapping("/coupon/updateCouponStatus")
    Result updateCouponStatus(@RequestBody ShopCoupon shopCoupon);
}

